package com.java.util.javautil.jvm;

import sun.misc.Launcher;

import javax.xml.ws.spi.Provider;
import java.net.URL;

public class ClassloaderPathTest {

    public static void main(String[] args) {
        //获取BootStrapClassLoader 能够加载的api的路径
        URL[] urLs = Launcher.getBootstrapClassPath().getURLs();
        for (URL urL : urLs) {
            int i = 1;
            System.out.println(urL.getPath());
        }

        ClassLoader classLoader = Provider.class.getClassLoader();
        System.out.println(classLoader);
    }
}
